Ext.define('NF.view.farm.Edit',{
    extend:'Ext.window.Window',
    alias:'widget.farmEdit',
    title:'Edit Farm',
    layout:'fit',
    autoShow:true,
    initComponent:function(){
        this.items = [
            {
                xtype:'form',
                items:[
                    {
                        xtype:'textfield',
                        name:'name',
                        fieldLabel:'Name'
                    },
                    {
                        xtype:'textfield',
                        name:'description',
                        fieldLabel:'Description'
                    }

                ],
                buttons:[
                    {
                        text: 'Save',
                        action: 'save'
                    },
                    {
                        text: 'Cancel',
                        scope: this,
                        handler: this.close
                    }
                ]
            }
        ];
        this.callParent(arguments);
    } //initComponent Closed.
});